<?php
/*
* LQBU_DB Class
* Connect to LQUERY DB_INTERFACE 
*
* @package LQBU_DB
*/
class LQBU_DB 
{
	protected static $PDODB = array();
  
	/**
	* Connect to database or DB library
	*
	* @access	private Called by the constructor
	* @param	string (DB Group definition)
	* @return	void
	*/
	function connect($dbGroup) 
	{
		$LQBU_pathinfo = pathinfo(__FILE__);
		include $LQBU_pathinfo['dirname'].DIRECTORY_SEPARATOR."database.php";

		if (!isset($configLQBU[$dbGroup]['database']))
			throw new Exception('LQueryBU-001: No database definition found for group "'.$dbGroup.'"');

		self::$PDODB[$dbGroup] = new LQBU_DBC($configLQBU[$dbGroup]);
  	}
}


